<template>
  <div>
    <my-goods
      @cut="fn"
      :title="title"
      :price="price"
    />
  </div>
</template>

<script>
import MyGoods from './components/MyGoods.vue'
export default {
  components: {
    MyGoods
  },
  data () {
    return {
      title: '螺丝粉',
      price: 15
    }
  },
  methods: {
    fn (n) {
      console.log('收到通知', n)
      this.price -= n
    }
  }
}
</script>

<style></style>
